package com.victualler.core.common.exception;

/**
 * @Aouthor Guoshichang
 * @Date 20:25 on 2018/7/5.
 * @Function
 */
public class CoreRuntimeException extends RuntimeException {
    private String  errorCode;
    private String  errorMessage;

    public CoreRuntimeException(String errorCode,String errorMessage) {
        super(errorMessage);
        this.errorMessage = errorMessage;
        this.errorCode = errorCode;
    }

    public CoreRuntimeException(String message, Throwable cause) {
        super(message, cause);
    }

    public CoreRuntimeException(Throwable cause) {
        super(cause);
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }
}
